package com.ruoyi.web.domain.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

@Data
   public class MesUseDetailVo {

    //领用单编码
    @Excel(name = "领用单编码")
    public String useNum;
    //生产单编码
    @Excel(name = "生产单编码")
    public String produceNo;
    //机台名称
    @Excel(name = "机台名称")
    public String machineName;
    //车间名称
    @Excel(name = "车间名称")
    public String workshopName;
    //机台编码
    @Excel(name = "机台编码")
    public String machineNo;

    //领用时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "领用时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    public Date outboundDate;
    //领用数量
    @Excel(name = "领用数量")
    public BigDecimal useNumber;
    // 领用数量合计
    @Excel(name = "领用数量合计")
    public BigDecimal useNumberSum;
    //纸张编码
    @Excel(name = "纸张编码")
    public String code;
    //自有编码
    public String originalCode;
    //纸张名称
    @Excel(name = "纸张名称")
    public String name;
    //规格型号
    @Excel(name = "规格型号", combo = {"890*1240","889*1230", "870*1230","830卷筒"}, readConverterExp = "1=890*1240,2=889*1230,3=870*1230,4=830卷筒")
    public Long specs;
    //品牌
    @Excel(name = "品牌", combo = {"金海","太阳","晨鸣","亚太","银河","金蔡伦","华泰","青苑","方源","龙丰","华中","博达","广东华泰","岳阳"}, readConverterExp = "1=金海,2=太阳,3=晨鸣,4=亚太,5=银河,6=金蔡伦,7=华泰,8=青苑,9=方源,10=龙丰,11=华中,12=博达,13=广东华泰,14=岳阳")
    public Long brand;
    //克重
    @Excel(name = "克重")
    public BigDecimal weight;
    //单位
    @Excel(name = "单位", combo = {"公斤","吨", "张","令"}, readConverterExp = "1=公斤,2=吨,3=张,4=令")
    public Long unit;
    //纸型
    @Excel(name = "纸型", combo = {"内文","封面"}, readConverterExp = "1=内文,2=封面")
    public Long paperType;
    //长度
    @Excel(name = "长度")
    public Long longWide;
    //宽度
    @Excel(name = "宽度")
    public Long wide;

    //纸张id
    public Long paperId;
    //机台id
    public String machineId;
    //领用单id
    public Long useinfoId;
    //生产单id
    public String produceId;

    public String status;

    public String outMachineName;

    public Map<String,Object> params;

    @TableField(exist = false)
    public String startDate;

    @TableField(exist = false)
    public String endDate;
}
